package com.ruoyi.web.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class MaterialRejectVo implements Serializable {
    private String supplierId;//供应商Id
    private Long materialId;//物料Id
    //退货单ID
    private Long rejectId;
    @Excel(name = "退货单编码")
    private String rejectCode;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rejectDate;
    @Excel(name = "供应商名称")
    private String supplierName;
    @Excel(name = "供应商编号")
    private String supplierCode;
    @Excel(name = "物料分类")
    private String className;
    @Excel(name = "物料编号")
    private String materialCode;
    @Excel(name = "物料名称")
    private String materialName;
    @Excel(name = "规格型号")
    private String specs;
    @Excel(name = "计量单位", combo = {"米", "千克"}, readConverterExp = "1=米,2=千克")
    private String unit;
    @Excel(name = "物料品牌", combo = {"品牌1", "品牌2"}, readConverterExp = "1=品牌1,2=品牌2")
    private String brand;
    @Excel(name = "退货数量")
    private BigDecimal quantity;
    @Excel(name = "单价")
    private BigDecimal price;
    @Excel(name = "金额")
    private BigDecimal amount;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    @Excel(name = "制单人")
    private String createBy;
    @Excel(name = "备注")
    private String remark;

    /** 状态 */
    private Integer status;
}
